package priv.yiyuan.example.design.product.view;

import priv.yiyuan.example.design.product.renderer.ProductRenderer;

/**
 * 商品视图
 * <p>
 * 桥接模式-抽象部分
 */
public abstract class ProductView {

    protected ProductRenderer productRenderer;

    public ProductView(ProductRenderer productRenderer) {
        this.productRenderer = productRenderer;
    }

    public void setProductRenderer(ProductRenderer productRenderer) {
        this.productRenderer = productRenderer;
    }

    public abstract void display(String productData);
}
